<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %> 
<script type="text/javascript">
function menu_ChangeX(div_id)
{
    var obj=document.getElementById(div_id);
    if(obj.style.display=="none")
    {
        obj.style.display="block";
    }
    else
    {
        obj.style.display="none";
    }
}

function menu_ChangeY(div_id)
{
    var obj=document.getElementById(div_id);
    if(obj.style.display=="none")
    {
        obj.style.display="block";
    }
    else
    {
        obj.style.display="none";
    }
}

function menu_onclick(action)
{
    var url = action + ".do";
    var content = "";
    var objectid = "content";
    sendXMLHttpRequest(url, content, objectid); 
}

function menu_change_password()
{
    var url = "rs/password/change.do";
    var content = "";
    var objectid = "content";
    sendXMLHttpRequest(url, content, objectid); 
    /* window.parent.location="logout.do";*/
}

function menu_logout()
{
    if (!confirm("退出？"))
    {
        return;
    }

    var url = "sl/logout.do";
    var content = "";
    var objectid = "container";
    sendXMLHttpRequest(url, content, objectid); 
    /* window.parent.location="logout.do";*/
}
</script>
  <table width="160" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="5"></td>
    </tr>
  </table>
  <table width="160" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="5"></td>
      <td width="150">
      <table width="150" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="images/felt_top.png" width="150" height="45"></td>
        </tr>
        <tr>
        <td valign="top" background="images/felt_bg.jpg">
          <s:if test="menus.size()>0" >
	      <s:iterator value="menus" status="stat">
	      <s:if test="%{validateMenu(index)}" >
	      <div onclick="menu_ChangeX('<s:property value="key" />');">
          <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="20" height="25" align="center" valign="middle"><IMG SRC="images/11_22.jpg" WIDTH="11" HEIGHT="11" ALT=""></td>
              <td width="5"></td>
              <td width="125"><strong><a href="javascript:void(0);" class="redlink"><s:property value="title" /></a></strong></td>
            </tr>
            <tr>
              <td colspan="3"><IMG SRC="images/11_26.jpg" WIDTH="150" HEIGHT="1" ALT=""></td>
            </tr>
          </table>
          </div>
          <div id="<s:property value="key" />" style="display:none;">
          <s:if test="submenu.size()>0">
          <s:iterator value="submenu" status="stat1">
          <s:if test="%{validateMenu(index)}" >
          <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="25" height="20" align="right" valign="middle"><IMG SRC="images/11_23.gif" WIDTH="11" HEIGHT="11" ALT=""></td>
              <td width="5"></td>
              <td width="120"><a href="javascript:void(0);" class="bluelink2"
                  onclick="menu_onclick('<s:property value="action" />');"><s:property value="title" /></a></td>
            </tr>
            <tr>
              <td height="2" colspan="3"><IMG SRC="images/11_26.jpg" WIDTH="150" HEIGHT="1" ALT=""></td>
            </tr>
          </table>
          </s:if>
          </s:iterator>
          </s:if>
          </div>
		  </s:if>
		  </s:iterator>
		  </s:if>
	      <div >
          <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="20" height="25" align="center" valign="middle"><IMG SRC="images/11_22.jpg" WIDTH="11" HEIGHT="11" ALT=""></td>
              <td width="5"></td>
              <td width="125"><strong><a href="javascript:void(0);" onclick="menu_change_password();" class="redlink">修改密码</a></strong></td>
            </tr>
            <tr>
              <td colspan="3"><IMG SRC="images/11_26.jpg" WIDTH="150" HEIGHT="1" ALT=""></td>
            </tr>
          </table>
          </div>	      
          <div >
          <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="20" height="25" align="center" valign="middle"><IMG SRC="images/11_22.jpg" WIDTH="11" HEIGHT="11" ALT=""></td>
              <td width="5"></td>
              <td width="125"><strong><a href="javascript:void(0);" onclick="menu_logout();" class="redlink">退出登录</a></strong></td>
            </tr>
            <tr>
              <td colspan="3"><IMG SRC="images/11_26.jpg" WIDTH="150" HEIGHT="1" ALT=""></td>
            </tr>
          </table>
          </div>	  
        </td>
      </tr>
      <tr>
        <td><img src="images/felt_bom.jpg" width="150" height="15"></td>
      </tr>
    </table>
    </td>
    <td width="5"></td>
  </tr>
  <tr>
   <td width="5"></td> 
   <td background="images/table_bom_bg.jpg">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td><img src="images/table_bom_left.jpg" width="20" height="15"></td>
       <td></td>
       <td align="right"><img src="images/table_bom_right.jpg" width="20" height="15"></td>
     </tr>
   </table>
   </td>     
    <td width="5"></td>
  </tr>
</table>